/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projeto_piu;

import javax.swing.JFrame;

/**
 *
 * @author LUANTAVARES
 */
public class JanelaPrograma {
    
    private JFrame janelaPrincipal;
    
    public JanelaPrograma(){
        this.janelaPrincipal = new JFrame();
        janelaPrincipal.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        janelaPrincipal.setLocation(300, 200);
        janelaPrincipal.setSize(600, 400);
        janelaPrincipal.setTitle("Janela principal");
    }
    
    public void executar(){
        Parte01 parte01 = new Parte01();
        Parte02 parte02 = new Parte02(this.janelaPrincipal);
        Parte03 parte03 = new Parte03(this.janelaPrincipal);
        Parte04 parte04 = new Parte04(this.janelaPrincipal);
        parte01.executar();
        parte02.executar();
        parte03.executar();
        parte04.executar();
        this.janelaPrincipal.setJMenuBar(parte01.getjMenuBar());
        this.janelaPrincipal.setVisible(true);
    }
    
}
